Package pl. wendigo. chrome. protocol. websocket
Contains DevTools protocol WebSocket primitives and utility classes:
WebSocketFramesStream represents stream of frames that are exchanged between protocol client and the browser over the WebSocket connection
RequestFrame represents frame that is sent over the WebSocket connection
ResponseFrame represents different frame types that are received over the WebSocket connection:
ErrorResponseFrame represents error frame that is received if the request is malformed and/or invalid
RequestResponseFrame represents response frame that is received when request was fulfilled successfully
EventResponseFrame represents event frame that is received when Domain event is generated
Types
ErrorResponseFrame
Link copied to clipboard
data class ErrorResponseFrame(id: Long, error: RequestError, sessionId: SessionID?) : WebSocketFrame, ResponseFrame
Content copied to clipboard
EventResponseFrame
Link copied to clipboard
data class EventResponseFrame(eventName: String, params: JsonElement, sessionId: SessionID?) : WebSocketFrame
Content copied to clipboard
FrameMapper
Link copied to clipboard
class FrameMapper
Content copied to clipboard
FrameMapper is responsible for (de)serializing frames exchanged via Chrome's DevTool Protocol.
RequestError
Link copied to clipboard
RequestFrame
Link copied to clipboard
data class RequestFrame(id: Long, sessionId: String?, method: String, params: JsonElement?)
Content copied to clipboard
RequestResponseFrame
Link copied to clipboard
data class RequestResponseFrame(id: Long, result: JsonElement, sessionId: SessionID?) : WebSocketFrame, ResponseFrame
Content copied to clipboard
ResponseFrame
Link copied to clipboard
interface ResponseFrame
Content copied to clipboard
WebSocketFrame
Link copied to clipboard
sealed class WebSocketFrame
Content copied to clipboard
WebSocketFramesStream
Link copied to clipboard
class WebSocketFramesStream(webSocketUri: String, framesBufferSize: Int, mapper: FrameMapper, webSocketClient: OkHttpClient) : WebSocketListener, Closeable, AutoCloseable
Content copied to clipboard